package smcms.service.resources.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import smcms.service.resources.entity.OwnPermission;
import smcms.service.resources.entity.Permission;
import smcms.service.resources.entity.Permissions;

import java.util.List;

@Mapper
public interface ResourcesMapper {
    void PermissionDelete();
    void insertUserPermission(@Param("result") List<Permissions> result);
    void updatePermissionCall();
    List<OwnPermission> getOwnPermission(@Param("username") String username);
    void grantePermission(Permission permission);
    Boolean existPermission(Permission permission);
}
